package day12.task;

public class taskOne {
    public static void main(String[] args) {

      try{
          String str=null;
        System.out.println(str.length());
    }catch (NullPointerException e){
          System.out.println("捕获到空指针异常");
          System.out.println("异常信息为："+e.getMessage());
      }finally {
          System.out.println("测试");
      }
    }
}
